package com.codeczx.mygeeknews;

import android.content.Context;
import android.net.ConnectivityManager;

/**
 * Created by win10 on 2017/7/2.
 */

public class SystemUtils {

    public static boolean isNetworkConnected(){
        ConnectivityManager manager = (ConnectivityManager) App.getInstance().getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);
        return manager.getActiveNetworkInfo()!=null;
    }
}
